package cn.cj.erp.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 菜单类型
 *
 * @author chenjian
 */
public enum MenuTypeEnum implements BaseEnum {
    /**
     * 目录
     */
    CATALOG("M", "目录"),
    /**
     * 菜单
     */
    MENU("C", "菜单"),
    /**
     * 按钮
     */
    BUTTON("F", "按钮");

    @JsonValue
    private final String value;
    private final String label;

    MenuTypeEnum(String value, String info) {
        this.value = value;
        this.label = info;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
